package com.example.project.mapper;

import com.example.project.entity.UserInfoBean;
import com.example.framework.baseMapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 继承BaseMapper
 * 使用mybatis的通用mapper
 */
@Mapper
public interface UserMapper extends BaseMapper<UserInfoBean> {

    UserInfoBean getUserById(@Param("id") String id);

    UserInfoBean getInfoByUsername(@Param("user") UserInfoBean user);

    UserInfoBean selectUserByUsername(@Param("userName") String userName);
}
